package cn.tqfeiyang.smartadmin.business.member.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 会员等级添加请求类
 *
 * @author tqfeiyang
 * @wechat 18576228047
 * @email 1787585212@qq.com
 * @date 2024/8/15 9:56
 */
@Data
public class MemberLevelCreateDTO {

    @Schema(description = "等级名称", required = true)
    @NotBlank(message = "等级名称不能为空")
    @Length(max = 50, message = "等级名称最多50字符")
    private String name;

    @Schema(description = "备注")
    @NotBlank(message = "备注不能为空")
    @Length(max = 1000, message = "备注最多1000字符")
    private String remark;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态")
    private Boolean status;

}
